from flask import jsonify
from AdminApiRunner.core.Utils import ReturnUtil
from AdminApiRunner.app import app


@app.errorhandler(404)
def page_not_found(e):
    return ReturnUtil.Error(msg="页面未找到"),404


@app.errorhandler(500)
def server_error(e):
    return ReturnUtil.Error(msg="服务器异常"+e),500


